package center.leon.zoofeignsentinelweb.monkey.controller;

import center.leon.zoofeignsentinelapi.common.Response;
import center.leon.zoofeignsentinelapi.monkey.dto.Monkey;
import center.leon.zoofeignsentinelapi.monkey.service.MonkeyServiceApi;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author : Leon on XXM Mac
 * @since : create in 2024/9/4 21:19
 */
@Slf4j
@RestController
@RequestMapping(value = "/monkey")
public class MonkeyController {

    @Resource
    private MonkeyServiceApi monkeyServiceApi;

    @GetMapping(value = "/hello/feign")
    public String helloFeignWorld(){
        log.info("helloFeignWorld");
        return monkeyServiceApi.helloFeignMonkey(new Monkey());
    }

}
